/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Control;

import java.awt.Shape;
import java.awt.geom.Point2D;

/**
 *
 * @author Eng Omnia
 */
public class ShapeObject {

    Shape myShape;
    String name="no name";
int index;
    public ShapeObject() {
    }

    public ShapeObject(Shape myShape, String name) {
        this.myShape = myShape;
        this.name = name;
    }

    public ShapeObject(Shape myShape,int index) {
        this.myShape = myShape;
        this.index = index;
    }

    public Shape getMyShape() {
        return myShape;
    }

    public String getName() {
        return name;
    }

    public void setMyShape(Shape myShape) {
        this.myShape = myShape;
    }

    public void setName(String name) {
        this.name = name;
    }
    public boolean contains(Point2D point){
        if(myShape.contains(point)){
            return true;
        }
        return false;
    }
}
